<?php

namespace System\Types;

class Integer extends Object
{

    private $value;

    /**
     * @access private
     */
    public function __construct($value)
    {
        parent::__construct();
        $this->value = (int) $value;
    }

    public function ToString()
    {
        return (string) $this->value;
    }

    /**
     * @return integer
     */
    public function Value()
    {
        return $this->value;
    }

}
